<template>
  <div>
  <mt-button type="default">default</mt-button>
  <mt-button type="primary">primary</mt-button>
  <mt-button type="danger" @click="alertTodo">danger</mt-button>
  </div>
</template>

<script>
// 函数不需要在入口处引用了
import { Toast } from 'mint-ui'
export default {
  name: 'App',
  methods: {
    alertTodo () {
      Toast({
        message: '操作成功',
        iconClass: 'icon icon-success'
      })
      Toast({
        message: '提示',
        position: 'bottom',
        duration: 5000
      })
    }
  }
}
</script>

<style scoped>

</style>
